﻿using System;
using System.Threading.Channels;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");


            var age = 15;

            if (age >= 18)
            {
                Console.WriteLine("恭喜你成年了");
            }
            else
            {
                Console.WriteLine("你还是未成年哦");
            }

            Console.WriteLine("请输入游戏积分（大于0的整数哦）");
            int points = int.Parse(Console.ReadLine());
            if (points < 0)
            {
                points = 0;
            }
            if (points <= 100)
            {
                Console.WriteLine("您的游戏等级为初级");
            }
            else if (points <= 300)
            {
                Console.WriteLine("您的游戏等级为中级");
            }
            else if (points <= 500)
            {
                Console.WriteLine("您的游戏等级为高级");
            }
            else
            {
                Console.WriteLine("您的游戏等级为特级");
            }

            Console.WriteLine("请输入你的成绩");
            int code1 = int.Parse(Console.ReadLine());
            var code = 5;
            switch (code1 / code)
            {
                case 20:
                case 19:
                case 18:
                case 17:
                    Console.WriteLine("优秀哦");
                    break;
                case 16:
                case 15:
                    Console.WriteLine("良好哦");
                    break;
                case 14:
                case 13:
                case 12:
                    Console.WriteLine("及格哦");
                    break;
                case 11:
                case 10:
                case 9:
                case 8:
                case 7:
                case 6:
                case 5:
                case 4:
                case 3:
                case 2:
                case 1:
                case 0:
                    Console.WriteLine("不及格哦");
                    break;

            }
        }
    }
}

